import request from '@/utils/request'

export function paymentChannelList(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/payment/channel/list`,
    method: 'post',
    data: query
  })
}

export function paymentChannelTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/payment/channel/table`,
    method: 'post',
    data: query
  })
}

export function paymentChannelLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/payment/channel/load`,
    method: 'get',
    params: query
  })
}

export function paymentChannelSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/payment/channel/save`,
    method: 'post',
    data: query
  })
}

export function paymentChannelDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/payment/channel/delete`,
    method: 'post',
    data: query
  })
}
